import request from '@/utils/request'

/**
 * 获取人员列表
 */
export const getPeopleAPI = (params) => {
  return request.get('/user-service/user/search', { params })
}
// 新增人员
export const addPeopleAPI = (data) => {
  return request.post('/user-service/user', data)
}

/**
 * 获取角色列表
 */
export const getRolesAPI = () => {
  return request.get('/user-service/role')
}

/**
 * 获取区域列表
 */
export const getAreasAPI = (params) => {
  return request({ url: '/vm-service/region/search', params: {
    pageIndex: 1,
    pageSize: 10000
  }})
}

/**
 * 图片上传
 */
export const imageSave = (formData) => {
  return request.post('/vm-service/sku/fileUpload', formData)
}
